package com.example.shopping.service;

import com.example.shopping.entity.User;

import java.util.List;

/**
 * @author xuan 2021/9/16
 */

public interface UserService {

    List<User> showUsers();

    User selectUser(Integer id);

    User login(String username, String password);

    User fondUserByUsername(String username);

    void register(String username, String password, String nickname);

    void updateNicknameAndPassword(String username, String password, String nickname, String newPassword);
}
